#!/usr/bin/env python

import os
import resources.strings.triple.viewer as r
import resources.strings.app as rApp

class Meta(object):
    '''Meta class

    @author Julot <andy.julot@gmail.com>
    @since Sunday, January 15, 2012. 04:45 PM'''

    def __init__(self, **kw):
        self.name = r.name
        self.description = r.description
        self.long_description = r.longDescription
        self.version = r.version
        self.histories = r.histories
        d = self.histories[self.version]
        self.trademarks = r.blessing
        self.copyright = r.copyright
        self.company_name = r.company
        self.comments = r.blessing
        self.author = r.author
        self.author_email = r.authorEmail
        self.maintainer = r.author
        self.maintainer_email = r.authorEmail
        self.long_version = r.humanVersion
        self.release_date = r.releaseDate

        # For executable
        self.script = 'tripleViewer.py'
        self.icon = os.path.join(os.getcwdu(), "resources", "icons",
                                 'triple.ico')
        self.icon_resources = [(1, self.icon)]
        self.dest_base = self.name
        self.other_resources = [(24, 1, rApp.manifest)]
        
        self.__dict__.update(kw)
